package com.bondex.charter.controller;

import org.apache.commons.beanutils.PropertyUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Controller;

/**
 * Controller层基类
 *
 * @author JD
 * @date 2020/04/22
 */
@Controller
public class BaseController {

	//region 参数

	//endregion

	//region 共同处理

	//入参的值为空判断
	protected boolean isPropertyEmpty(Object oParam, String sKey) throws Exception {
		Object oValue = PropertyUtils.getProperty(oParam, sKey);
		return oValue == null || StringUtils.isEmpty((String) oValue);
	}

	//endregion

	//region 权限判断

	//endregion

}
